/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cps_tree_package;

import common.TransactionInteger;
import hash.SimpleProcessor;
import interfaces.IStreamProcessor;
import interfaces.ITransaction;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import streammining.FileProcessorInteger;

/**
 *
 * @author cogs
 */
public class CPS {
    
    public static void main(String [] args){
        
        List<ITransaction> transactions;
        OrdinaryNode root = new OrdinaryNode();
        
        IStreamProcessor processor = new SimpleProcessor();
        processor.setWindow(2, 2);
        processor.setSupport(2);
        processor.init();
        
        try {
            transactions = (new FileProcessorInteger()).getTransactions("C:\\Users\\cogs\\Documents\\NetBeansProjects\\kosarak_100.dat");
            
//            for(int i = 0; i < transactions.size(); i++){
//                for (int j = 0; j < transactions.get(i).getItems().size(); j++)
//                    System.out.println(transactions.get(i).getItems().get(j).toString());
//            }
            
        } catch (Exception ex) {
            Logger.getLogger(CPS.class.getName()).log(Level.SEVERE, null, ex);
        }    
        
        System.out.println("OK");
    }
    
}